s = 'AeDeFrIJ'
num = 0
for i in range(len(s)):
    if "a" <= s[i] <= "z":
        num += 1
print("小写字母个数为: %d" % num)